package com.kunzai.threadrun;

/**
 * 一百张火车票四个窗口售卖
 */

public class RailwayticketOne extends Thread {
    private int train = 100;
    @Override
    public void run() {
        while (true){
            if (train>0){
                System.out.println(Thread.currentThread().getName()+"售卖第"+train--+"张票");
            }
        }
    }
}
